package parser;
import antlr.RecognitionException;
import antlr.Token;

class Comparison extends Binary {
    
    Comparison(Expr left, String op, Expr right) {
        super(left, op, right);
    }

    Patch branch(boolean onTrue, ByteStream out) throws RecognitionException {
        write(out);
        return out.branch(onTrue ? Opcodes.ON_TRUE : Opcodes.ON_FALSE);
    }    

}
